
import java.io.PrintWriter;

class ProcedureDeclaration extends Declaration {

	private Node block_;
	private Node formal_list_;
	private String name_;

	public ProcedureDeclaration(Node fl, Node b, String n) {
		block_ = b;
		formal_list_ = fl;
		name_ = n;
	}

	public ProcedureDeclaration(Node b, String n) {
		block_ = b;
		name_ = n;
	}

	@Override
	public void print(PrintWriter pw) {
		pw.println("Node name : ProcedureDeclaration. Proc name is: " + name_);
		// assert(block_);
		if (formal_list_ != null) {
			formal_list_.print(pw);
		}
		block_.print(pw);
	}

}